package work.linruchang.util.annotation;


import work.linruchang.util.bean.wrapper.db.SqlFragment;

import java.lang.annotation.*;

/**
 * 左连表注解
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@TableJoinField(joinSymbol = SqlFragment.LEFT_JOIN)
public @interface TableLeftJoinField {

    /**
     * 需要连的表
     * @return
     */
    Class[] joinTable() default {};

    /**
     * 需要连的表字段
     * @return
     */
    String joinFieldName() default "";

}
